<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户列表</title>
</head>
<body>
    <h2>评论列表</h2>
 
    <table border="1">
        <tr>
            <th>电影名ID</th>
            <th>用户ID</th>
            <th>评论时间</th>
            <th>点播时间</th>
            <th>收藏时间</th>
            <th>评论内容</th>
        </tr>
        <c:forEach items="${watchList}" var="watch">
            <tr>
                <td>${watch.uid}</td>
                <td>${watch.vid}</td> 
                <td>${watch.comtime}</td>
                <td>${watch.viewtime}</td>
                <td>${watch.colltime}</td>
                <td>${watch.comword}</td>     
                <td>
                <a href="${pageContext.request.contextPath}/deletewatch.do?wid=${watch.wid}">删除</a></td>
            </tr>
        </c:forEach>
    </table>
    <br>
 	<a href="toaddpinglun.do?uid=1&vid=20">增加评论</a>
	<a href="toaddview.do?uid=1&vid=20">增加点播</a>
	<a href="toaddshouchang.do?uid=1&vid=20">增加收藏</a>
</body>
</html>